// 用户相关请求模块
import axios from '@/utils/axios'

// 用户登录
export const login = data => {
  return axios({
    method: 'POST',
    url: '/mp/v1_0/authorizations',
    // data用来设置post请求体
    data
  })
}

// 用户个人信息
export const getUserinfo = data => {
  return axios({
    method: 'GET',
    url: '/mp/v1_0/user/profile'
  })
}
